QuickOPC User's Guide and Reference
FromDAVtq Method (DAVtq<TValue>)



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.DataAccess.Generic Namespace > DAVtq<TValue> Class : FromDAVtq Method
A non-generic Value/Timestamp/Quality object to be converted to typed generic.
Creates a typed generic DAVtq<TValue> from non-generic OpcLabs.EasyOpc.DataAccess.DAVtq object.
Syntax
'Declaration
 
<CanBeNullAttribute()>
Public Shared Function FromDAVtq( _
   ByVal vtq As DAVtq _
) As DAVtq(Of TValue)
'Usage
 
Dim vtq As DAVtq
Dim value As DAVtq(Of TValue)
 
value = DAVtq(Of TValue).FromDAVtq(vtq)
[CanBeNull()]
public static DAVtq<TValue> FromDAVtq( 
   DAVtq vtq
)
[CanBeNull()]
public:
static DAVtq<TValue^>^ FromDAVtq( 
   DAVtq^ vtq
) 

Parameters

vtq
A non-generic Value/Timestamp/Quality object to be converted to typed generic.

Return Value

A typed DAVtq<TValue> object made from vtq.
Remarks
When vtq is null, the return value is also null. An exception is thrown when the vtq does not contain a type assignable to DAVtq<TValue>.
Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2012, Windows Server 2016; .NET Core, .NET 5, .NET 6: Linux, macOS, Microsoft Windows

See Also

Reference

DAVtq<TValue> Class
DAVtq<TValue> Members